package com.doudou.base.resources.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.doudou.commons.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户的真实信息
 *
 * @author 傻男人
 * @since 2020-05-14
 */

@Data
@TableName(value = "user_real_info",resultMap = "BaseResultMap")
public class UserRealInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
	private Long id;
    /**
     * 姓名
     */
	private String name;
    /**
     * 性别(0男1女)
     */
	private Integer gender;
    /**
     * 出生年月（yyyy-MM-dd）
     */
	private String birthday;
    /**
     * 身份证号码
     */
	@TableField("id_card")
	private String idCard;
    /**
     * 身份证保存地址
     */
	@TableField("id_card_url")
	private String idCardUrl;
    /**
     * 身份证上地址
     */
	@TableField("id_card_address")
	private String idCardAddress;
    /**
     * 用户的账号信息
     */
	@TableField("user_account_info_id")
	private Long userAccountInfoId;

	public class Meta {
        public static final String id = "id";
        public static final String name = "name";
        public static final String gender = "gender";
        public static final String birthday = "birthday";
        public static final String idCard = "id_card";
        public static final String idCardUrl = "id_card_url";
        public static final String idCardAddress = "id_card_address";
        public static final String userAccountInfoId = "user_account_info_id";
        public static final String createDate = "CREATE_DATE";
        public static final String updateDate = "UPDATE_DATE";
        public static final String delFlag = "del_flag";
    }
}